package cn.wolfcode.mycat.handler;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: Jason
 * @Date: 2021/04/09/10:59
 * @Description:
 */
public abstract  class AbstractHandler implements IHandler {
	
	@Override
	public boolean test(Map<String, Object> context) {
		before(context);
		after(context);
		return false;
	}
	
	public abstract void before(Map<String, Object> context);
	
	public abstract void after(Map<String, Object> context);
}
